Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2317/Copy data from grants-db into the opportunity table(s) in the analytics db #3228

Merged
merged 64 commits into from
Dec 18, 2024

Conversation

babebe
Copy link
Collaborator

@babebe babebe commented Dec 16, 2024

Summary

Fixes #{2317}

Time to review: 20 mins

Changes proposed

New Cli Function to upload opportunity tables into analytics db
S3 configuration to read csv opportunity tables
Add S3 Environment variables
Mock s3 client for testing
Added fixtures for AWS (From API code), test-schema and opportunity-tables to aid in testing, scoped to test session.
Added fixture to delete table records after each test
Added opportunity table csv files for testing
Added test that checks files were successfully uploaded and records inserted into test-schema tables

Context for reviewers

poetry run pytest ./tests/integrations/extracts/test_load_opportunity_data.py when running test locally

Additional information

Screenshots, GIF demos, code examples or output to help show the changes working as expected.

@babebe babebe added the draft Not yet ready for review label Dec 16, 2024
@babebe babebe requested a review from chouinar December 16, 2024 14:31
@babebe babebe requested a review from coilysiren as a code owner December 16, 2024 14:31
@babebe babebe requested a review from chouinar December 17, 2024 01:26
@babebe babebe self-assigned this Dec 17, 2024
@babebe babebe linked an issue Dec 17, 2024 that may be closed by this pull request
1 task
@babebe babebe requested a review from chouinar December 17, 2024 15:05
@babebe babebe requested a review from coilysiren December 17, 2024 16:30
@babebe babebe requested a review from chouinar December 18, 2024 15:00
Copy link
Collaborator

@chouinar chouinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@babebe babebe merged commit 27a7a65 into main Dec 18, 2024
5 of 6 checks passed
@babebe babebe deleted the 2317/copy_opp_data_to_analytics branch December 18, 2024 20:02
doug-s-nava pushed a commit that referenced this pull request Dec 30, 2024
…alytics db (#3228)

## Summary
Fixes #{[2317](#2317)}

### Time to review: __20 mins__

## Changes proposed
New Cli Function to upload opportunity tables into analytics db
S3 configuration to read `csv `opportunity tables 
Add S3 Environment variables 
Mock s3 client for testing
Added fixtures for AWS (From API code), test-schema and
opportunity-tables to aid in testing, scoped to test session.
Added fixture to delete table records after each test
Added opportunity table `csv` files for testing
Added test that checks files were successfully uploaded and records
inserted into test-schema tables



## Context for reviewers
> poetry run pytest
./tests/integrations/extracts/test_load_opportunity_data.py when running
test locally

## Additional information
> Screenshots, GIF demos, code examples or output to help show the
changes working as expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Copy data from [source] into the opportunity table(s) in the analytics db
3 participants